/**
 * Apr 2, 2011
 * 9:52:39 PM
 * Timiz
 * kukujun@gmail.com
 *cn.lastjune.service.impltimiz-project-dpReportpeopleServiceImpl
 */
package cn.lastjune.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.lastjune.dao.ReportpeopleDao;
import cn.lastjune.pojo.Reportpeople;
import cn.lastjune.service.ReportpeopleService;
import cn.lastjune.util.Page;

/**
 * @author Timiz
 *         kukujun@gmail.com
 */

@Service
@Transactional
public class ReportpeopleServiceImpl implements ReportpeopleService
{

    @Autowired
    ReportpeopleDao dao;

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.impl.ReportpeopleService#getAll(cn.lastjune.util.Page)
     */
    @Override
    public Page<Reportpeople> getAll(Page<Reportpeople> page)
    {
        return dao.getPageAll(page);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.impl.ReportpeopleService#getReportpeopleById(java.lang.String)
     */
    @Override
    public Reportpeople getReportpeopleById(String id)
    {

        return dao.get(id);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.impl.ReportpeopleService#insertReportpeople(cn.lastjune.pojo.Reportpeople)
     */
    @Override
    public void insertReportpeople(Reportpeople entity)
    {
        dao.add(entity);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.impl.ReportpeopleService#deleteReportpeople(java.lang.String)
     */
    @Override
    public void deleteReportpeople(String id)
    {
        dao.delete(id);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.impl.ReportpeopleService#updateReportpeople(cn.lastjune.pojo.Reportpeople)
     */
    @Override
    public void updateReportpeople(Reportpeople entity)
    {
        dao.update(entity);
    }

}
